projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbb2938
)
entry: Use correct state when computing icon padding
author
Benjamin Otte
<otte@redhat.com>
Tue, 25 Nov 2014 20:57:58 +0000
(21:57 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 26 Nov 2014 12:53:57 +0000
(13:53 +0100)
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index 7f334ba299df628878fa25dd72455ca550f98506..4f08c91a67e11fa7aa09dcc144e1ac218f4386dd 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-2840,8
+2840,8
@@
get_icon_width (GtkEntry *entry,
return 0;
context = gtk_widget_get_style_context (GTK_WIDGET (entry));
- state = gtk_style_context_get_state (context);
gtk_entry_prepare_context_for_icon (entry, context, icon_pos);
+ state = gtk_style_context_get_state (context);
gtk_style_context_get_padding (context, state, &padding);
_gtk_icon_helper_get_size (icon_info->icon_helper, context,